remove unnecessary code
implement logging of failed authentication attempts
move MasterSwitch activity 2