Fixed post model to be able to save data into the table