added some user functions like register page.