Added initial email validation functionality