added email validation and fixed tks for validation