validation added to verify the correct rating is selected between 1 and 5