finish register page, alter cacha wtih simple func