Checking for a working login