added validations to chatform