fix register page issue(page reloads when validation failure)

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>