=Modified login and sign up logic. Should be changed from direct-form submiting to the submitting via javascript