register page functionality done