added max length on post and category