seperated login/sign up and did more back end code