The key for the username is wrong here, it should be `user: 'user'`.