adding jquery update, some validations