login and register done and routing