Added a bit more logging to user registration.