added functionality between post and user for likes