Login bug fix

fixes bug from login refactor