Checking if need to use login lock