Login + constants.php fix