Implemented add record functionality for post model and created corresponding view and controller action