Changing validation from postcontroller to post model.