finalised the user validation method, only formatting the mail must be done.