fixed small problem with validations