added login, and messages