Moving post's category validation from Post controller to its model.