Added valid_params method