validations bug fix