implementing register page