Generate more secure auth id for email login.
Handle unauthorized email login.