fixed login scriplet