A collection of validators in both php and js