Added validation. Updated gitignore.