wrapping login check with delay