finished setting up login route to call server login function and return user