fixed the login so that it now remembers previous doctors