add register page and repository class