added login and register routes