Updated action for regisiter page.