added comments for login dialog modifications