login fix

After login, the page will refresh
good catch!