messages and user login check