Added logging out and remembering credentials