saving credentials to datastore seems to be working properly now