Retain form values when form error on register page

This is fix for issue issue #262.

I added a new function ```get_errors``` that returns all the POST errors. 
Using this function to get all the POST errors and check whether to clear or retain the values of the username or email address that a user submit when registering. 
let's return an empty array here.