Added regex to check if email is valid