created base code for the register page