made changes to the controller for signup and login to work