updated login filtering