Changed email field to email type