Updated the login script