Merged emailvalidation social

check for existence

if(typeof document.forms["resendValidationMail"] !== 'undefined') {
    var emailId   = document.forms["resendValidationMail"]["email"].value;
}