added error trapping for failed password/email address