Added logic to register user page