Implement login method in UserModel
implement logout function in UI and introduce events object on UserModel