added puts statements in controller for debugging 422 in heroku