Replaced before_filter with before_action in users_controller.rb