fixes login, still need to figure out the session.