JavaScript function created for SignUp form Submission.