Added some usefull regex patterns to the validated input control as public static finals. Also added some null checking to setters
added null check to isValid method. the method return true if the pattern is null