Improved documents validations and submit