Make sure to check for errors in the login script