adjust login operation