fixed login bug for users who don't have an email address