working login check vs db details