added registration validator