adding register page functionality