created validators in models