Added string as optional type for ID replacement
Minor updates
Improved error message for required and min length fields