made login check to non blocking to prevent hanging of page