add validation  of registration ajax