bugfix corrected exits if no UserCredential object extits