Corrected login script