Fixed exception when the avatar is not found and a problem when the chat is refreshed, added default login page