Hi,
hmm... OK .. My first impresion is that you have called your method(check_attr..) for the submit button. I`m right?
My first idea: try to call this method...on another event? maybe in modify_view(), but you need to use a flag(if the submit buttton was pressed) in this case..
Ovidiu