Updated index.php and static/field.js

Added more hurdles for security purposes.