js for login/signup clientside