Refactored to save logged in user info in session to save on db calls.