added validations and email index