write an register page