added validation for admin portal APIs