Created checkMail method and attached to signup.js