Got the login script all working