Page refreshes once logged in