Fixes login button bug, redirects to index on login