Home page display corrected if user is already logged in