implemented login and signup functionality with passport