syntax error corrected in entries_controller