Added email validation

Close #2