Corrects sign up and login mechanism