refactoring create action for ratings
show errors when submitting incorrect data