Fixing some string/pointer issues with credentials.