Changed param to email type