Basic error handling in register page