Fix regex for url in registration.