Fixing security, prevents users from posting messages while not logged in.