validator for email added, minor fixes