This adds simple authentication methods to check credentials.