logic to actually test the password vs encrypted password, lint cleanup