replaces valid_credentials?/1 with get_credentials/1