Creation of credentials & basic secret checking