rebuild of Login