Fixing the login on load of page.