login fix

After login, the page will refresh