template login and register done