Reject publish if not logged in and reditrect to login page