login and register partialy rebuild