Fix for login script.