Now saving password and resource, so user is logged in for remote authentication.