changed syntax errors

*edited user controller and posts controller