Tweaks to login script.