added form requirement

added function to require from the user to enter the form elements
before proceeding the sign in or sign up