Improve email field handling

Tweaked the email validation and added additional properties to email
field display to improve the experience on mobile devices.

Both email and password mappings have been abstracted since they will
appear in multiple places.