fixing callbacks for registration validation