Ignored PhpStorm IDE files in git.
Some refactoring of validation.