added messages to handle when login is needed