configuring routes to a new webpage upon successful login
registering user and keeping track of navigation