Moved history to login event and added comments