Changed registration page to give more useful error messages if registration fails.