Edited login script