add login and signup logic to controllers