added validate presence of user id into posts model