create script login manager