The rating is working properly. Added the resource call and the class of close-reveal modal to close the form now upon submission.