refactor items controller implementation code

- remove begin .. end since we're in a method.
- merged params_valid? method into search action.