Added checking IsAuthenticated and setting user id by post creation