excepted NoneType error on login page.