Added validation when not in a git repo