added login control (without separated in second assembly sadly ;/)