added presence validation and feature on length validation