Refactored UserController - extracted repeatable code in new method to get the user by sessionkey