handled lastloggdin updation