updating login and register references on routes