Fixed a bug with non-existant array key for username or password