wouldnt just testing (attrs.password) be better style?