added callback func to back-end validation