Add simple email validation. Reformat with 1.9 hash syntax

@ivanvarghese, will this be okay with data in the database already?