fixed a bug in registrationuseragent
added more rfc4235 compliance