changed trigerlogin.php to make it work according to config file