Added email validation. Fixed #3