add automatic checking of messages on login