adjusting sign_up and login calls to model