Updated grInput validation.
  Now the validate specifies the regexp to test the grInput value
  There will be predefined values starting with '$' (currently only
  $mail).