add logic for email check
add javascript