replaced pattern validation in apply page to custom validators, added common universal validation methods to braingeneral