working validations on all fields