fix bug when create category and fix authentication bug