added validations
merge xhr validations