Added .gsub validation to the controller