Added create method in posts_controller.rb. Defined post_params method