update userFunctions for email validation