creating and editing post only when login