checking of login user improvement