configured login and register routes