moving error handling to helpers.rb