Fixed issues when login with null email and not allowing saving profile