added validation to user fields, and index to email