value validation added