user show page logic, refactored logged in message