Added limit for notification preview and made logout go directly to login