this has the login stuff that patsy needs