Moved reading credentials to "credentials"