Routing for user login and register (with https)