Added frontend email validation