Add validations to tagging endpoints
Add test cases for validations
Fix test cases