Creds model

closes #12