added presence validation and feature on length validation

added a new validation method, and a new feature on lenght validation.