Adding authenticate to tables controller