Credentials to gitignore, undefined variable bugfix