added email and username validations