implemented history log in user