added login and signup functionality