Modification for main.pm and login without install script. Need to set REGRESSION and KEEPHDDS to enable it