User#find_by_name refactoring