adds logic to controller
validates presence of all fields for an entry
index written