add error checking for empty password fields
removed extra paren