Added validation rules on environment. Fix bug #22