Got error handling working for the registration page.