Implemented get current user from session.