Refactor the 'users_helper.rb' file