Added a post model along with validations.