error fixes in user n post controller