refactoring getUser method
removed stub