Fixed bug with login from home page