Here's a quick way to use ajax and create a user registration page. On succesfull validation, the user is created and the page is updated with relevant data - both with static messages and user provided details. Of course, we throw the errors if validation fails.