Added input validation via javascript and php.
Added gitignore.