GiD provides a default validation when registering a module or problem type. This consists of checking that the password is not empty. If the password is valid, GiD appends a line to the file <problem type>/password.txt similar to this:
This default validation can be overridden, but this involves Tcl programming. For a description of how to provide a custom password validation see ValidatePassword node from Customization Manual.