logged in user goes to the correct page