completed and tested post and search functinalities